package cn.wolfcode.luowowo.website.web.controller;

import cn.wolfcode.luowowo.article.domain.DestinationFilter;
import cn.wolfcode.luowowo.article.query.DestinationThemeQuery;
import cn.wolfcode.luowowo.article.service.IDestinationCommentService;
import cn.wolfcode.luowowo.article.service.IDestinationFilterService;
import cn.wolfcode.luowowo.article.service.IDestinationThemeService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Author: linzhongjian
 * @email 911976613@qq.com
 * @Date: 2019/9/25 20:58
 * <p>
 * 功能描述:测试的controller
 */
@Controller
public class TestController {

    @Reference
    private IDestinationThemeService destinationThemeService;
    @Reference
    private IDestinationCommentService destinationCommentService;
    @Reference
    private IDestinationFilterService destinationFilterService;

    @RequestMapping("ok")


    public String hello(Model model, DestinationThemeQuery qo)
    {
        List<DestinationFilter> list = destinationFilterService.list();
        model.addAttribute("list",list);

        return "test/test";
    }





}
